package 
{
	import br.com.stimuli.loading.BulkLoader;
	import com.gooddare.controller.ApplicationFacade;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.system.ApplicationDomain;
	import flash.system.LoaderContext;
	/**
	 * ...
	 * @author Lyleff
	 */
	[SWF(width="995",height="650",frameRate="38",backgorundColor="#FFFFFF")]
	public class Main extends Sprite 
	{
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			stage.showDefaultContextMenu = false;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			//stage.align = StageAlign.BOTTOM;
			
			ApplicationFacade.getInstance().sendNotification(ApplicationFacade.EVENT_APP_STARTUP, this);
		}
		
	}
	
}